import java.sql.SQLOutput;

public class Frog extends Animal implements IRunning,ISwimming{
    public Frog(String name) {
        super(name);
    }

    @Override
    public void run() {
        System.out.println(name + "往前跳");
    }

    @Override
    public void swim() {

        System.out.println(name + "蹬腿游泳");
    }

    @Override
    public void eat() {
        System.out.println(name + "吃蛙食");
    }
}
